applying differentiation to real life problems